package Entity;

import java.util.Collection;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(schema="poleinfodb", name = "directoffer")
@PrimaryKeyJoinColumn(name="ID_OFFER")
public class DirectOffer extends Offer{
	
	
	public DirectOffer() {
		super();
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 5212196737552963091L;
	
	@Basic(optional=false)
	private double fixedprice;

	public DirectOffer(Collection<Contract> contracts, double fixedprice) {
		super(contracts);
		this.fixedprice = fixedprice;
	}
	
	public DirectOffer(double fixedprice) {
		super();
		this.fixedprice = fixedprice;
	}

	public double getFixedprice() {
		return fixedprice;
	}

	public void setFixedprice(double fixedprice) {
		this.fixedprice = fixedprice;
	}
	
	
}
